package com.ruoyi.food.object;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * 活动订单表
 * @author mengcc
 *
 */
@TableName("t_act_order")
@ApiModel(value = "TActOrder", description = "活动订单")
public class TActOrder extends BaseEntity{
	/**主键id**/
	@TableId(value="order_id")
	@ApiModelProperty(value = "主键id", name = "orderId")
	private long orderId;
	
	 /**
     * 商户订单号
     */
    private String mOrderId;
	
	/**核销id**/
	@ApiModelProperty(value = "核销id", name = "hxid")
	private long hxid;
	
	/**活动id**/
	@ApiModelProperty(value = "活动id", name = "actID")
	private long actID;
	
	/**购买人id**/
	@ApiModelProperty(value = "购买人id", name = "clientId")
	private long clientId;
	
	/**单价**/
	@ApiModelProperty(value = "单价", name = "price")
	private BigDecimal price;
	
	/**购买数量**/
	@ApiModelProperty(value = "购买数量", name = "number")
	private int number;
	
	/**单位**/
	@ApiModelProperty(value = "单位", name = "unit")
	private String unit;
	
	/**规格**/
	@ApiModelProperty(value = "规格", name = "spec")
	private String spec;
	
	/**购买金额**/
	@ApiModelProperty(value = "购买金额", name = "amount")
	private BigDecimal amount;
	
	/**购买时间**/
	@ApiModelProperty(value = "购买时间", name = "createTime")
	private Timestamp createTime;
	
	/**支付类型**/
	@ApiModelProperty(value = "支付类型", name = "payType")
	private int payType;
	
	/**核销时间**/
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(value = "核销时间", name = "hxTime")
	private Timestamp hxTime;
	
	
	private String longitude;
	
	
	private String latitude;
	
	/**学校**/
	@ApiModelProperty(value = "学校", name = "school")
	private String school;
	
	/**年级**/
	@ApiModelProperty(value = "主键id", name = "grade")
	private String grade;
	
	/**班级**/
	@ApiModelProperty(value = "班级", name = "className")
	private String className;
	
	/**客户**/
	@ApiModelProperty(value = "客户", name = "customerName")
	private String customerName;
	
	/**手机号**/
	@ApiModelProperty(value = "手机号", name = "mobile")
	private String mobile;
	
    private String posNo;

    private String termNo;
 
    private String unionOrderNo;
    /**收单状态**/
    private String orStatus;
    /**银行卡号**/
    private String bankCardNo;
    /**支付描述**/
    private String billDesc;
    
    private Timestamp payTime;
    
    private String openId;
    
    private String unionId;
    
    private long enterpriseId;
    
    /**
     * 所属地区
     */
    private String region;
    
    /**
     * 地址
     */
    private String address;
    
    /**
     * 邮政编码
     */
    private String postCode;
    
    /**
     * 预约取票日期
     */
    private Date takeTicketDate;
    
    /**
     * 优惠券金额
     */
    private BigDecimal couponAmount;
    
    private long HxEnterpriseId;
	
	/**活动名称**/
	@TableField(exist = false)
	private String actName;
	
	/**购买用户**/
	@TableField(exist = false)
	private String name;
	
	/**
	 * 餐饮企业水库存数
	 */
	@TableField(exist = false)
	private int stockNum;
	

	public long getOrderId() {
		return orderId;
	}


	public void setOrderId(long orderId) {
		this.orderId = orderId;
	}


	public long getHxid() {
		return hxid;
	}


	public void setHxid(long hxid) {
		this.hxid = hxid;
	}


	public long getActID() {
		return actID;
	}


	public void setActID(long actID) {
		this.actID = actID;
	}


	public long getClientId() {
		return clientId;
	}


	public void setClientId(long clientId) {
		this.clientId = clientId;
	}


	public BigDecimal getPrice() {
		return price;
	}


	public void setPrice(BigDecimal price) {
		this.price = price;
	}


	public int getNumber() {
		return number;
	}


	public void setNumber(int number) {
		this.number = number;
	}


	public String getUnit() {
		return unit;
	}


	public void setUnit(String unit) {
		this.unit = unit;
	}


	public String getSpec() {
		return spec;
	}


	public void setSpec(String spec) {
		this.spec = spec;
	}


	public BigDecimal getAmount() {
		return amount;
	}


	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}


	public Timestamp getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}


	public int getPayType() {
		return payType;
	}


	public void setPayType(int payType) {
		this.payType = payType;
	}


	public Timestamp getHxTime() {
		return hxTime;
	}


	public void setHxTime(Timestamp hxTime) {
		this.hxTime = hxTime;
	}


	public String getLongitude() {
		return longitude;
	}


	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}


	public String getLatitude() {
		return latitude;
	}


	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}


	public String getActName() {
		return actName;
	}


	public void setActName(String actName) {
		this.actName = actName;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getSchool() {
		return school;
	}


	public void setSchool(String school) {
		this.school = school;
	}


	public String getGrade() {
		return grade;
	}


	public void setGrade(String grade) {
		this.grade = grade;
	}


	public String getClassName() {
		return className;
	}


	public void setClassName(String className) {
		this.className = className;
	}


	public String getMobile() {
		return mobile;
	}


	public void setMobile(String mobile) {
		this.mobile = mobile;
	}


	public String getCustomerName() {
		return customerName;
	}


	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}


	public String getmOrderId() {
		return mOrderId;
	}


	public void setmOrderId(String mOrderId) {
		this.mOrderId = mOrderId;
	}


	public String getPosNo() {
		return posNo;
	}


	public void setPosNo(String posNo) {
		this.posNo = posNo;
	}


	public String getTermNo() {
		return termNo;
	}


	public void setTermNo(String termNo) {
		this.termNo = termNo;
	}


	public String getUnionOrderNo() {
		return unionOrderNo;
	}


	public void setUnionOrderNo(String unionOrderNo) {
		this.unionOrderNo = unionOrderNo;
	}


	public String getOrStatus() {
		return orStatus;
	}


	public void setOrStatus(String orStatus) {
		this.orStatus = orStatus;
	}


	public String getBankCardNo() {
		return bankCardNo;
	}


	public void setBankCardNo(String bankCardNo) {
		this.bankCardNo = bankCardNo;
	}


	public String getBillDesc() {
		return billDesc;
	}


	public void setBillDesc(String billDesc) {
		this.billDesc = billDesc;
	}


	public Timestamp getPayTime() {
		return payTime;
	}


	public void setPayTime(Timestamp payTime) {
		this.payTime = payTime;
	}


	public String getOpenId() {
		return openId;
	}


	public void setOpenId(String openId) {
		this.openId = openId;
	}


	public String getUnionId() {
		return unionId;
	}


	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}


	public int getStockNum() {
		return stockNum;
	}


	public void setStockNum(int stockNum) {
		this.stockNum = stockNum;
	}


	public long getEnterpriseId() {
		return enterpriseId;
	}


	public void setEnterpriseId(long enterpriseId) {
		this.enterpriseId = enterpriseId;
	}


	public String getRegion() {
		return region;
	}


	public void setRegion(String region) {
		this.region = region;
	}


	public String getAddress() {
		return address;
	}


	public void setAddress(String address) {
		this.address = address;
	}


	public String getPostCode() {
		return postCode;
	}


	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}


	public Date getTakeTicketDate() {
		return takeTicketDate;
	}


	public void setTakeTicketDate(Date takeTicketDate) {
		this.takeTicketDate = takeTicketDate;
	}


	public BigDecimal getCouponAmount() {
		return couponAmount;
	}


	public void setCouponAmount(BigDecimal couponAmount) {
		this.couponAmount = couponAmount;
	}


	public long getHxEnterpriseId() {
		return HxEnterpriseId;
	}


	public void setHxEnterpriseId(long hxEnterpriseId) {
		HxEnterpriseId = hxEnterpriseId;
	}

}
